import React from 'react';
import RouterView from "./routes/routerView";
import routerConfig from './routes/router-config';
//BrowserRouter 整个项目只引入一次
import {BrowserRouter} from 'react-router-dom'

function App(props) {
  return (
    <BrowserRouter>
      <RouterView routes={routerConfig}/>
    </BrowserRouter>
  );
}

// class App extends Component {
//   render() {
//     return (
//       <RouterView>
//
//       </RouterView>
//     );
//   }
// }

export default App;
